package com.car.serve.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.car.serve.entity.InfoProject;
import com.car.serve.mapper.InfoProjectMapper;
import com.car.serve.service.InfoProjectService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 董旭
 * @since 2024-08-28
 */
@Service
public class InfoProjectServiceImpl extends ServiceImpl<InfoProjectMapper, InfoProject> implements InfoProjectService {
    @Resource
    private InfoProjectMapper infoProjectMapper;
    @Override
    public List<InfoProject> findById(Integer serveId) {
        QueryWrapper<InfoProject> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("serve_id",serveId);
        List<InfoProject> infoProjects = infoProjectMapper.selectList(queryWrapper);
        return infoProjects;
    }
}
